package org.jtzc.springaimcpservermvc;

import org.springframework.ai.tool.annotation.Tool;
import org.springframework.ai.tool.annotation.ToolParam;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

/**
 * @author wu chuang
 * @description
 */
@Service
public class HelloWordService {

    @Tool(name = "readDB", description = "读取数据库")
    public String readDB(@ToolParam(description = "数据库链接") String path) throws IOException {
        return "数据读取成功";
    }
}
